﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProfileDisplay.ascx.cs"
    Inherits="SonCa.SocialNetwork.Web.ASCX.ProfileDisplay" %>
<%@ Register Src="~/ASCX/CommentControl.ascx" TagName="CommentControl" TagPrefix="uc1" %>
<%@ Import Namespace="SonCa.SocialNetwork.Web.HelperClass" %>

<div class="mgtop30">
    <div class="innermgtop30">
        <div class="box_181 cpos_1">
            <div class="w62 cpos_1">                
                <asp:HyperLink ID="linkToPersonal_img" runat="server"><asp:Image ID="imgAvatar" runat="server" Width="62" Height="62" /></asp:HyperLink>
                <div>
                    <asp:Image ID="imgLevel" runat="server" />
                    <strong><asp:Label ID="lblScore" runat="server" Text=""></asp:Label></strong>
                </div>
            </div>
        </div>        
        <div class="box_320 cpos_2" id="friendDisplay">
            <div>
                <div class="cpos_1 title7" style="width: 25%">
                    <asp:HyperLink ID="linkToPersonal_name" runat="server"><asp:Label ID="lblFriend" runat="server"></asp:Label></asp:HyperLink>                    
                </div>                
                <div class="cpos_1" style="width: 75%">
                    <div style="float: right">
                        <asp:ImageButton ID="ibInviteFriend" runat="server" AlternateText="add friend" ImageUrl="../img/icon_addFriend.png" ToolTip="Add as Friend" ImageAlign="AbsMiddle" OnClientClick="SendInvitationRequest(this); return false;" ClientIDMode="Static" />
                    </div>
                </div>
            </div>
            <div class="clearer"></div>
            <div class="mgtop10">
                <asp:Label ID="lblStatus" runat="server"></asp:Label>
            </div>

            <!-- Photo -->
            <asp:Repeater ID="rptPhotos" runat="server" onitemdatabound="rptPhotos_ItemDataBound">
                <ItemTemplate>
                    <asp:HyperLink ID="linkPhotos" runat="server" NavigateUrl="../Files/Photos"></asp:HyperLink>
                    <asp:Literal Visible="false" ID="litFileSystemName" runat="server" Text='<%#((HCFile)Container.DataItem).FileSystemName %>'></asp:Literal>
                    <asp:Literal Visible="false" ID="litFileID" runat="server" Text='<%#((HCFile)Container.DataItem).FileID %>'></asp:Literal>
                    <asp:Literal Visible="false" ID="litExtension" runat="server" Text='<%#((HCFile)Container.DataItem).Extension %>'></asp:Literal>
                </ItemTemplate>
            </asp:Repeater>
            <!-- End Photo -->

            <!-- Video -->
            <video runat="server" style="display:none" id="video" class="video-js vjs-default-skin"
                controls preload="none" width="300" height="200" poster="../img/slide.jpg" data-setup='{"example_option":true}'>
                <source id="video_source_1" runat="server" src="" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
                <source id="video_source_2" runat="server" src="" type='video/webm; codecs="vp8, vorbis"' />
                <source id="video_source_3" runat="server" src="" type='video/ogg; codecs="theora, vorbis"' />
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="300" height="200" align="middle">
                    <param name="expressinstall" value="../css/expressInstall.swf">
                    <param name="swfversion" value="9.0.0">
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="movie" value="" />
                    <param name="quality" value="high" />
                    <embed id="video_source_4" runat="server" src="" quality="high" width="300" height="200" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />                    
                </object>                
            </video>
            <!-- End Video -->

            <!-- Audio -->
            <audio controls id="audio" runat="server" style="display:none">
                <source id="audio_source_1" runat="server" src="" type="audio/mpeg" />
                <source id="audio_source_2" runat="server" src="" type="audio/wav" />
                <source id="audio_source_3" runat="server" src="" type="audio/ogg" />
                <object height="50" width="100">
                    <embed id="audio_source_4" runat="server" src=""></embed>
                </object>
                Your browser does not support this audio format.
            </audio>
            <!-- End Audio -->

            <div class="mgtop10">
                <div class="cpos_1 icon_like title9">
                    <a id="lbtLike" runat="server" onclick="Rating(this);return false;" style="cursor:pointer">like</a>
                    <br />
                    [<span class="title10"><asp:Label ID="lblNumberLike" runat="server" ClientIDMode="Static">0</asp:Label></span>]
                </div>
                <div class="cpos_1 icon_like title9 mgleft5">
                    <a id="lbtUnlike" runat="server" onclick="Unlike(this);return false;" style="cursor:pointer">unlike</a><br />
                    [<span class="title10"><asp:Label ID="lblNumberUnlike" runat="server" ClientIDMode="Static">0</asp:Label></span>]
                </div>
                <div class="cpos_1 icon_like title9 mgleft5">
                    <a id="lbtShare" runat="server" onclick="Share(this);return false;" style="cursor:pointer">share</a><br />
                    <%--<span class="title10"><img src="../img/face.jpg" width="15" height="15" /></span>--%>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="mgtop10">
                <asp:Repeater ID="rptComment" runat="server">
                    <ItemTemplate>
                        <uc1:CommentControl ID="CommentControl1" runat="server" SystemObjectID="5" SystemObjectRecordID='<%#Eval("StatusID") %>' />
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
        <div class="clearer">
        </div>
    </div>
</div>
